IMath

StockSharp.Xaml.Charting.Numerics.GenericMath

Defines the interface to a generic math helper

Propriedades

MaxValue : T

Gets the MaxValue for T.

MinValue : T

Gets the MinValue for T. for DateTime it returns DateTime.MinValue (it has .Ticks = 0)

ZeroValue : T

Gets the ZeroValue for T. for DateTime it returns DateTime.MinValue (it has .Ticks = 0)

Métodos

Abs(T) : T

Get the Absolute value of (a)

Add(T, T) : T

Adds lhs + rhs. for DateTime it returns a new DateTime with .Ticks = lhs.Ticks + rhs.Ticks

Dec(T) : T

Returns T-- for DateTime it decrements .Ticks

Inc(T) : T

Returns T++ for DateTime it increments .Ticks

IsNaN(T) : bool

Returns if T is NaN. Only valid for Float, Double types. For all other types, always returns false

Max(T, T) : T

Returns the Max of A and B

Min(T, T) : T

Returns the Min of A and B

MinGreaterThan(T, T, T) : T

Returns the Min of A and B greater than a Floor

Mult(T, T) : T

Multiplies lhs * rhs

Mult(T, double) : T

Multiplies lhs * rhs

Subtract(T, T) : T

Subtracts a - b. For DateTime it returns a new DateTime with .Ticks = a.Ticks - b.Ticks

ToDouble(T) : double

Converts to the equivalent value as a double